package com.solution.wx.share.entity;

import java.math.BigDecimal;

import com.solution.common.entity.BaseEntity;
import com.solution.common.utils.DateUtils_add;

/**
 * 分享商品销售统计数据实体
 * @author xkl
 * @date 2018年6月6日 下午8:00:34
 */
public class ShareProductStatisticsEntity extends BaseEntity {
	private static final long serialVersionUID = 8528455315083626794L;
	
	/**
	 * 总记录ID(每日分享统计字段)
	 */
	private Long staticticsId;
	/**
	 * 商品ID
	 */
	private Long productId;
	/**
	 * 商品名称
	 */
	private String productName;
	/**
	 * 商品编码
	 */
	private String productCode;
	/**
	 * 商品分类名称
	 */
	private String productCategoryName;
	/**
	 * 商品主图
	 */
	private String productImagePath;
	/**
	 * 分享数
	 */
	private Long shareQuantity;
	/**
	 * PV分享浏览数
	 */
	private Long pvViewQuantity;
	/**
	 * uv分享浏览数
	 */
	private Long uvViewQuantity;
	/**
	 * 销售数
	 */
	private Long shareOrderNum;
	/**
	 * 销售总额
	 */
	private BigDecimal shareTotalMoney;
	/**
	 * 注册用户
	 */
	private Long registerQuantity;
	
	public Long getStaticticsId() {
		return staticticsId;
	}
	public void setStaticticsId(Long staticticsId) {
		this.staticticsId = staticticsId;
	}
	public Long getProductId() {
		return productId;
	}
	public void setProductId(Long productId) {
		this.productId = productId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public String getProductCode() {
		return productCode;
	}
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	public String getProductCategoryName() {
		return productCategoryName;
	}
	public void setProductCategoryName(String productCategoryName) {
		this.productCategoryName = productCategoryName;
	}
	public String getProductImagePath() {
		return productImagePath;
	}
	public void setProductImagePath(String productImagePath) {
		this.productImagePath = productImagePath;
	}
	public Long getShareQuantity() {
		return shareQuantity;
	}
	public void setShareQuantity(Long shareQuantity) {
		this.shareQuantity = shareQuantity;
	}
	public Long getPvViewQuantity() {
		return pvViewQuantity;
	}
	public void setPvViewQuantity(Long pvViewQuantity) {
		this.pvViewQuantity = pvViewQuantity;
	}
	public Long getUvViewQuantity() {
		return uvViewQuantity;
	}
	public void setUvViewQuantity(Long uvViewQuantity) {
		this.uvViewQuantity = uvViewQuantity;
	}
	public Long getShareOrderNum() {
		return shareOrderNum;
	}
	public void setShareOrderNum(Long shareOrderNum) {
		this.shareOrderNum = shareOrderNum;
	}
	public BigDecimal getShareTotalMoney() {
		return shareTotalMoney;
	}
	public void setShareTotalMoney(BigDecimal shareTotalMoney) {
		this.shareTotalMoney = shareTotalMoney;
	}
	public Long getRegisterQuantity() {
		return registerQuantity;
	}
	public void setRegisterQuantity(Long registerQuantity) {
		this.registerQuantity = registerQuantity;
	}
	
	/**
	 * 时间格式化
	 * @return
	 * @author xkl
	 * @date 2018年6月21日 下午4:29:36
	 */
	public String getModifyTimeStr(){
		String timeStr = "";
		if (null != this.getModifyTime()) {
			timeStr = DateUtils_add.formatDate(this.getModifyTime(), DateUtils_add.DATE_FORMAT_DATEONLY);
		}
		return timeStr;
	}
}
